<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>

<body>

<?php
	require_once('connect_vars.php');
	
	$email = $_POST['email'];
	$senha = $_POST['senha'];
	
	/* conecta com o banco */
	$dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)
	or die('Erro ao concetar com o Banco de Dados.');
	
	/*
	$query = "INSERT INTO aliens_abduction (first_name, last_name, when_it_happened, how_long, " .
	"how_many, alien_description, what_they_did, fang_spotted, other, email) " .
	"VALUES ('$first_name', '$last_name', '$when_it_happened', '$how_long', '$how_many', " .
	"'$alien_description', '$what_they_did', '$fang_spotted', '$other', '$email')";
	
	
	$result = mysqli_query($dbc, $query)
	or die('Error querying database.');
	*/
	
	/* desconecta do banco */
	mysqli_close($dbc);
	
	echo 'Obrigado por logar no sistema!.<br />';
	echo 'Usuário ' . $email . '<br />';
	echo 'Senha ' . $senha . '<br />';
?>


</body>
</html>